jQuery.get("http://58.87.74.194:18080/fields", null, function(data){
	data = jQuery.parseJSON(data);
	jQuery.each(data, function(name,value){
		jQuery("#field").append("<option value='" + name + "'>" + name + "</option>");
	});
});
jQuery("#field").change(function(){
	var data = this.options[this.selectedIndex].value;
	jQuery.get("http://58.87.74.194:18080/category/" + data, null, function(cates){
		cates = cates.toString().split(",");
		jQuery("#category").html("<option>请选择类别</option>");
		jQuery.each(cates, function(i, cate){
			jQuery("#category").append("<option value='" + cate + "'>" + cate + "</option>");
		});
	});
});